package club.smartdot.example;

import java.io.Serializable;
import java.util.List;

public class Node implements Serializable {
	
	private static final long serialVersionUID = -6577154554349942804L;

	// 主键，唯一性约束
	private String id;	
	
	// 名称，比如西安文理学院、计算机科学与技术
	private String name;
	
	// 内容，预留字段
	private String text;
	
	// 排序
	private Integer sort;
	
	// 节点是否展开，默认false
	private Boolean expanded;
	
	// 父节点
	private Node parentNode;
	
	// 子节点
	private List<Node> childrenNodes;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Boolean getExpanded() {
		return expanded;
	}

	public void setExpanded(Boolean expanded) {
		this.expanded = expanded;
	}

	public Node getParentNode() {
		return parentNode;
	}

	public void setParentNode(Node parentNode) {
		this.parentNode = parentNode;
	}

	public List<Node> getChildrenNodes() {
		return childrenNodes;
	}

	public void setChildrenNodes(List<Node> childrenNodes) {
		this.childrenNodes = childrenNodes;
	}
	
	
	
}
